<?php

namespace App\Controller\Admin\Crontab;

use App\Controller\Admin\BaseController;
use App\Service\Crontab\CrontabService;
use Hyperf\Di\Annotation\Inject;
use Yj\Apidog\Annotation\ApiController;
use Yj\Apidog\Annotation\PostApi;

/**
 * @ApiController(prefix="admin/crontab")
 */
class CrontabController extends BaseController
{
    /**
     * @Inject()
     * @var CrontabService
     */
    protected $crontabService;
    /**
     * @PostApi(path="lists")
     */
    public function lists(){
        $params = $this->getParams();
        $data = $this->crontabService->lists($params);
        _SUCCESS($data);
    }

}